<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>

  <script src="../node_modules/vue/dist/vue.min.js"></script>
  <script type="text/javascript" src="../dist/vue-hints.js"></script>
</head>

<body>
  <div id="app">
    <a href="javascript:;" @click="toast">点击弹出Toast</a>
  </div>
</body>

<script>
  new Vue({
    el:'#app',
    methods:{
      toast:function(){
        this.$toast.show("你好，Toast",{
          duration:3000
        },function(){
          alert("回调函数")
        })
      }
    }
  })
</script>
</html>